<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
        xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Casa de eventos</title>
        <link rel="stylesheet" href="midia/css/style.css"></link>
        <link rel="stylesheet" href="../midia/css/style.css"></link>
</h:head>
<h:body>
	<f:view>
		<h:form id="Login" styleClass="ui-widget">
			<p:growl></p:growl>
				<p:dialog header="Sistema casa de eventos" widgetVar="dlg" showEffect="slide"
					width="450" modal="true" visible="true" resizable="false" closable="false" draggable="true">
				<h:panelGrid columns="2" width="350">
					<p:column>
						<h:outputText value="Login:"></h:outputText>
					</p:column>
					<p:column>
						<p:inputText id="login" value="#{usuarioBean.usuario.login}"
							tabindex="1"
							requiredMessage="Preencha o login" required="true"
							autocomplete="false"></p:inputText>
					</p:column>
					<p:column><h:outputText value="Senha:"></h:outputText>:</p:column>
					<p:column>
						<p:password id="senha" value="#{usuarioBean.usuario.senha}"
							tabindex="2"
							requiredMessage="Preencha a senha" required="true"
							autocomplete="false"></p:password>
					</p:column>
					<f:facet name="footer">
						<p:commandButton value="Limpar" tabindex="3" ajax="false"
							type="reset"></p:commandButton>
						<p:commandButton value="Logar" tabindex="3" ajax="false"
							action="#{usuarioBean.efetuarLogin}"></p:commandButton>
					</f:facet>
				</h:panelGrid>
				 
                            </p:dialog>
		</h:form>
	</f:view>
</h:body>
</html>